﻿@model WhiteGloss.Models.HomePage
@{
    ViewBag.Title = "White Gloss";
    Layout = "~/Views/Shared/_Main.cshtml";
}

@foreach (var artist in Model.Artists)
{
        <div class="grid_4">
            <a href="/Home/Artist/@artist.ArtistId"><img src="@artist.HomePageImage" alt="@artist.Name" /></a>
            <p>
                @artist.Name<br />
            </p>
        </div>
}

<script type="text/javascript">
    //prompter();

    function prompter() {
        $(".grid_4").hide();
        var reply = prompt("Hey there, good looking!  What's your name?", "")
        if (reply == "michelle") {
            $(".grid_4").show();
        }
        else {
            window.location.href = "/Admin";
        }
    }
</script>